#include "server.h"

server::server(QWidget *parent):
    QDialog(parent)
{
    setFixedSize(399,199);

    tport = 5555;
    tSrv = new QTcpServer(this);

    connect(tSrv,SIGNAL(newConnection()),this,SLOT(sendmsg()));
    initserver();
}//初始化

void server::initserver()
{
    payloadsize = 6666;
    totalbytes = 0;
    bytestobewrite = 0;
    byteswritten = 0;
}//初始数值
void server::refused()
{

}

void server::sendmsg()
{

}//发送
void server::sendfilename(QString filename)
{

}//收发消息实现
